package com.svr.service.impl;

import com.svr.entity.User;
import com.svr.mapper.UserMapper;
import com.svr.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yinbo
 */
@Service
public class UserServiceImpl implements UserService {
	@Autowired
	UserMapper userMapper;

	@Override
	public User queryById(int id) {
		User user = userMapper.selectByPrimaryKey(id);
		return user;
	}
}
